package ling.tengfei.service;

import java.util.List;

import link.tengfei.bean.GengralUser;
import link.tengfei.dao.UserListDao;
import link.tengfei.dao.UserListDaoImpl;

public class UserListServiceImpl implements UserListService {
	UserListDao userListDao = new UserListDaoImpl();

	@Override
	public int findNum() {
		return userListDao.findNum();
	}

	@Override
	public List<GengralUser> findByPage(int page) {
		return userListDao.findByPage(page);
	}

	@Override
	public List<GengralUser> findByName(int page, String value, String nameOrnum) {
		return userListDao.findByName(page, value, nameOrnum);
	}

	@Override
	public int findNumByName(String value, String nameOrnum) {
		return userListDao.findNumByName(value, nameOrnum);
	}

	@Override
	public int resetPwdById(int id) {
		return userListDao.resetPwdById(id);
	}

	@Override
	public int delete(int id, int state, String admin_username) {
		return userListDao.delete(id, state, admin_username);
	}

	@Override
	public int getStateById(int id) {
		return userListDao.getStateById(id);
	}

	@Override
	public GengralUser findUserById(int id) {
		return userListDao.findUserById(id);
	}

}
